ObjectDetectorHitTerrain
The data provided by the object detector when it hits terrain.
CFrame
The CFrame of the hit object.
It is of the type CFrame.
Color
The Color of the hit object.
It is of the type Color3.
Distance
The distance between the start of the ray and the contact point.
It is of the type number.
Name
The name of the hit object. If it is "Collider" then the object detector is hitting an EnergyShield, it can also be a player's limb, it will not provide the name of the player, just the name of the hit limb.
It can be any string, some example possibilities include: "Head", "Torso", "Left Arm", "Right Arm", "Left Leg", "Right Leg", "Collider".
Position
The Position of the hit object itself, not the Position of contact between the ray and the object.
It is of the type Vector3.
Size
The Size of the hit object.
It is of the type Vector3.
isTerrain
Whether or not the hit object is terrain.
It is of the type true.
Luau Type
This is the luau type for ObjectDetectorHitTerrain. It may help clear up mistranslations from the raw data to the wiki page (as it is an automatic process).
export type ObjectDetectorHitTerrain = {
Distance: number,
Name: "Head" | "Torso" | "Left Arm" | "Right Arm" | "Left Leg" | "Right Leg" | "Collider" | string,
Position: Vector3,
Color: Color3,
isTerrain: true,
CFrame: CFrame,
Size: Vector3,
}